package com.lkbaby.abstract1.impl;

import com.lkbaby.abstract1.AbstractFactory;
import com.lkbaby.abstract1.HtmlDocument;
import com.lkbaby.abstract1.WordDocument;
import com.lkbaby.abstract1.impl.fast.FastHtmlDocument;
import com.lkbaby.abstract1.impl.fast.FastWordDocument;

public class FastFactory implements AbstractFactory {
	@Override
	public HtmlDocument createHtml(String md) {
		System.out.println(md);
		return new FastHtmlDocument();
	}

	@Override
	public WordDocument createWord(String md) {
		System.out.println(md);
		return new FastWordDocument();
	}
}
